﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>后台管理 - 易买网</title>
	<!--	<script type="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>-->
	<!--本地jquery引用-->
	<script type="text/javascript" src="../scripts/jquery.js"></script>
	<link type="text/css" rel="stylesheet" href="../css/style.css" />
	<script type="text/javascript" src="../scripts/function-manage.js"></script>
	<script type="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
	<script type="text/javascript" src="../scripts/environment.js"></script>
	<script type="text/javascript" src="../scripts/util.js"></script>
	<script type="text/javascript" src="../scripts/function.js"></script>
	<script type="text/javascript" src="../scripts/baseFunction.js"></script>
	<script type="text/javascript" src="../scripts/goodsManage.js"></script>
	<script type="text/javascript" src="../scripts/upload.js"></script>
	<script type="text/javascript" src="../scripts/goods.js"></script>

</head>
<body onload="onGoodsAddLoad()">
<!--加载头部导航栏-->
<div id="headerBar"></div>
<script>
	$("#headerBar").load("components/header.html");
</script>
<div id="main" class="wrap">
	<div id="menu-mng" class="lefter">
		<div class="box">
			<dl>
				<dt>用户管理</dt>
				<dd><em><a href="user-add.html">新增</a></em><a href="user.html">用户管理</a></dd>
				<dt>商品信息</dt>
				<dd><em><a href="productClass-add.html">新增</a></em><a href="productClass.html">分类管理</a></dd>
				<dd><em><a href="product-add.html">新增</a></em><a href="product.html">商品管理</a></dd>
				<dt>订单管理</dt>
				<dd><a href="order.html">订单管理</a></dd>
				<dt>留言管理</dt>
				<dd><a href="guestbook.html">留言管理</a></dd>
				<dt>新闻管理</dt>
				<dd><em><a href="news-add.html">新增</a></em><a href="news.html">新闻管理</a></dd>
			</dl>
		</div>
	</div>
	<div class="main">
		<h2>添加商品</h2>
		<div class="manage">
			<form action="manage-result.html">
				<table class="form" id="uploadForm">
					<tr>
						<td class="field">商品名称：</td>
						<td>
							<input type="hidden" id="goodId" value="0"/>
							<input type="text" class="text" name="productName" id="productName" value="" onfocus="FocusItem(this)" onblur="CheckItem(this);"/>
							<span></span>
						</td>
					</tr>
					<tr>
						<td class="field">所属分类：</td>
						<td>
							<select name="parentId" id="categories" onfocus="FocusItem(this)" onblur="CheckItem(this);">
								<!--自动从后端获取分类信息-->
							</select>
							<span></span>
						</td>
					</tr>
					<tr>
						<td class="field">商品图片：</td>
						<td>
							<input type="file" class="text" name="image" id="image" accept="image/gif,image/jpg,image/png"/>
						</td>

					</tr>
					<tr>
						<td class="field">商品价格：</td>
						<td>
							<input type="text" class="text tiny" name="productPrice" id="price" onfocus="FocusItem(this)" onblur="CheckItem(this);"/> 元
							<span></span>
						</td>
					</tr>
					<tr>
						<td class="field">库存：</td>
						<td>
							<input type="text" class="text tiny" name="productCount" id="count" onfocus="FocusItem(this)" onblur="CheckItem(this);"/>
							<span></span>
						</td>
					</tr>
					<tr>
						<td class="field">商品描述：</td>
						<td>
							<input type="text" class="text" name="description" id="description" onfocus="FocusItem(this)" onblur="CheckItem(this);" />
							<span></span>
						</td>
					</tr>
					<tr>
						<td></td>
						<td><label class="ui-blue"><input type="button" name="submit" value="添加" onclick="AddGood()"/></label></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
	<div class="clear"></div>
</div>
<div id="foot">
	<script type="text/javascript">
		$("#foot").load("../components/footer.html");
	</script>
</div>
</body>

</html>
